Skip to content

Conversation

@cjeanner
Copy link
Contributor

Add a new 'verify' parameter to QuadsApi and QuadsBase constructors to allow users to control TLS certificate verification behavior.

The parameter accepts:

  • False (default): Disable certificate verification (backward compatible)
  • True: Enable verification using system's default CA bundle
  • str: Path to a custom CA bundle file

This change updates both the _make_request method and the login method to use the verify parameter instead of hardcoded verify=False.

Changes:

  • Add verify parameter to QuadsBase.init with Union[bool, str] type
  • Update _make_request to use self.verify
  • Update login method to use self.verify
  • Add comprehensive docstring explaining the parameter
  • Add 6 new tests covering all verify parameter scenarios
  • Update usage documentation with examples

Code generated with assistance from Auto (Cursor AI agent router). All tests pass and maintain backward compatibility.

@grafuls grafuls self-requested a review December 18, 2025 12:57
@codecov
Copy link

codecov bot commented Dec 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/quads_lib/base.py 100.00% <100.00%> (ø)
src/quads_lib/quads.py 99.64% <100.00%> (ø)
tests/test_quads.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cjeanner cjeanner force-pushed the add-tls-verify-parameter branch from 996e4fe to ff1ec9b Compare December 18, 2025 13:45
Add a new 'verify' parameter to QuadsApi and QuadsBase constructors
to allow users to control TLS certificate verification behavior.

The parameter accepts:
- False (default): Disable certificate verification (backward compatible)
- True: Enable verification using system's default CA bundle
- str: Path to a custom CA bundle file

This change updates both the _make_request method and the login
method to use the verify parameter instead of hardcoded verify=False.

Changes:
- Add verify parameter to QuadsBase.__init__ with Union[bool, str] type
- Update _make_request to use self.verify
- Update login method to use self.verify
- Add comprehensive docstring explaining the parameter
- Add 6 new tests covering all verify parameter scenarios
- Update usage documentation with examples

Code generated with assistance from Auto (Cursor AI agent router).
All tests pass and maintain backward compatibility.
@cjeanner cjeanner force-pushed the add-tls-verify-parameter branch from ff1ec9b to a984855 Compare December 18, 2025 14:52
@sadsfae sadsfae changed the base branch from latest to development December 18, 2025 14:52
@sadsfae sadsfae merged commit 14dd765 into quadsproject:development Dec 18, 2025
7 checks passed
@cjeanner cjeanner deleted the add-tls-verify-parameter branch December 18, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants